import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LENOVO
 * Date: 2024-08-06
 * Time: 17:06
 */
public class Test {
    public static List<List<Card>> setPlayers(){
        List<Card> player0 = new ArrayList<>();
        List<Card> player1 = new ArrayList<>();
        List<Card> player2= new ArrayList<>();
        List<List<Card>> players = new ArrayList<>();
        players.add(player0);
        players.add(player1);
        players.add(player2);
        return players;
    }

    public static void main(String[] args) {
        CardDemo cardDemo = new CardDemo();
        List<Card> cardList = cardDemo.buyCards();
        cardDemo.shuffle(cardList);
        System.out.println(cardList);
        //3人,每人轮流抽  共5 2张牌
        List<List<Card>> players = setPlayers();
        cardDemo.licensing(players,cardList);
        System.out.println(players.get(0));
        System.out.println(players.get(1));
        System.out.println(players.get(2));
        System.out.println("剩下的牌 "+cardList);
    }
}
